<?php


namespace Xiaoguai\DesignPattern\Main\Base\CacheDriver;


use Xiaoguai\DesignPattern\Main\Base\CacheInterface;

class SessionCache implements CacheInterface
{

    public function getName(): string
    {
        return 'session';
    }

    public function get(string $key)
    {
        // get cache from session
        return 'session:' . $key;
    }
}